package org.mspring.mlog.dao.impl;

import org.mspring.mlog.dao.OptionDao;
import org.mspring.mlog.entity.Option;
import org.mspring.platform.dao.hibernate.GenericDao;
import org.springframework.stereotype.Repository;

/**
 * 
 * @author Gao Youbo
 * @since 2014-01-11
 */
@Repository
public class OptionDaoImpl extends GenericDao<Option, String> implements OptionDao {

    @Override
    public Option findByName(String name) {
        return uniqueResult("select option from Option option where option.name = ?", name);
    }

}
